package com.sas.web.panel;

import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;

@SuppressWarnings("serial")
public class AddPanel extends Panel {

	
	@SuppressWarnings("unchecked")
	public AddPanel(String id, final Class t) {
		super(id);
		add(new Link<Void>("add"){

			@Override
			public void onClick() {
				setResponsePage(t);
			}
			
		});
	}

}
